import axios from "./http";

const user ={
    login(data){
        console.log(data,"123");
        return axios.post("/api/T_User/Login",data)
    },
    register(data){
        console.log(data,"123");
        return axios.post("/api/T_User/Register",data)       
    },
    getArticleType(){
        return axios.get("/api/T_Article/GetArticleType",);
    },
    getArticles(data){
        return axios.get("/api/T_Article/GetArticles",{params:data});
    },
    addNew(data){
        return axios.post("/api/T_Article/AddNew",data)
    },
    getUserByToken(data){
        return axios.get("/api/T_User/GetUserByToken",{params:data})
    },
    getArticlesById(data){
        return axios.get("/api/T_Article/GetArticlesById",{params:data})
    },
    getReplyMessage(data){
        return axios.get("/api/T_Article/GetReplyMessage",{params:data})
    },
    addReplyMessage(data){
        return axios.post("/api/T_Article/AddReplyMessage",data)
    }

}
export default user;